﻿using System.Windows.Forms;
using AsyncLibrary.StatusListener;

namespace AsyncLibrary.UI
{
  public class LabelListener : ControlListenerBase
  {
    private readonly Label _label;

    public LabelListener(Label label) : base(label)
    {
      _label = label;
    }

    public override void SetInfo(string text)
    {
      _label.Text = text;
    }

  }
}